<template>
  <div class="wrapper">
    <p>
      page not found2
    </p>
  </div>
</template>

<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import { State } from "vuex-class";

@Component({})
export default class pageNotFound extends Vue {
  deepClone(target, map = new WeakMap()) {
    if (typeof target === "object") {
      let cloneTarget = Array.isArray(target) ? [] : {};
      if (map.get(target)) {
        return map.get(target);
      }
      map.set(target, cloneTarget);
      for (const key in target) {
        if (target.hasOwnProperty(key)) {
          cloneTarget[key] = this.deepClone(target[key], map);
        }
      }
      return cloneTarget;
    } else {
      return target;
    }
  }
  mounted() {
    let a = new Map();
    const test = { a: 1 };
    a.set(test, []);
    console.log(a);
  }
}
</script>

<style scoped lang="stylus"></style>
